#ifndef     __KEY_H
#define     __KEY_H

#include "../utils/object.h"
#include "../utils/nocopyable.h"
#include <stdint.h>

namespace driver {

class Key_t : private utils::NoCopyable_t {

public: 
    static const uint32_t Timeout = 10 * 1000;

    Key_t();

    static bool wait_knob(bool flag);
    static bool wait_knob();

    static void ctrl_led(bool flag);

    static bool is_key0();
    static bool is_key1();
    static bool is_key2();
    static bool is_knob();
};

extern utils::Object<Key_t> key;

}



#endif
